package cn.cheneyjoo.io;

import java.io.InputStream;

public class Resources {
    /**
     * 根据所传入的路径获取对应的InputStream
     * @param path 路径
     * @return 字节流
     */
    public static InputStream getResourceAsStream(String path) {
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }
}
